package com.zzx.work1;

import javax.validation.constraints.Min;

public class Girl {

	private String name;
	@Min(value=18,message="age不能小于18")
	private int age;
	private int height;
	private String perfume;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
	public String getPerfume() {
		return perfume;
	}
	public void setPerfume(String perfume) {
		this.perfume = perfume;
	}
	
	@Override
	public String toString() {
		return "Girl [name=" + name + ", age=" + age + ", height=" + height + ", perfume=" + perfume + "]";
	}
	
	public Girl(String name, int age, int height, String perfume) {
		this.name = name;
		this.age = age;
		this.height = height;
		this.perfume = perfume;
	}
	
	public Girl() {
	}
	
	
	
}
